package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 用户对象 sys_group
 *
 * @author zyh
 */
public class SysGroup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 用户组id
     */
    private Long groupId;

    /**
     * 用户组名称
     */
    private String groupName;

    /**
     * 用户组用户
     */
    @TableField(exist = false)
    private Long[] userIds;

    @TableField(exist = false)
    private List<SysUser> users;

    @TableField(exist = false)
    private String userStrs;

    @TableField(exist = false)
    private String userIdStrs;

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long[] getUserIds() {
        return userIds;
    }

    public void setUserIds(Long[] userIds) {
        this.userIds = userIds;
    }

    public List<SysUser> getUsers() {
        return users;
    }

    public void setUsers(List<SysUser> users) {
        this.users = users;
    }

    public String getUserStrs() {
        return userStrs;
    }

    public void setUserStrs(String userStrs) {
        this.userStrs = userStrs;
    }

    public String getUserIdStrs() {
        return userIdStrs;
    }

    public void setUserIdStrs(String userIdStrs) {
        this.userIdStrs = userIdStrs;
    }

    @Override
    public String toString() {
        return "SysGroup{" +
                "groupId=" + groupId +
                ", groupName='" + groupName + '\'' +
                '}';
    }
}
